﻿using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Abp.Application.Services;
using Abp.Application.Services.Dto;
using LeadThing.AbpZeroTemplate.CallTypes.Dtos;
using LeadThing.AbpZeroTemplate.Dto;

namespace LeadThing.AbpZeroTemplate.CallTypes
{
    /// <summary>
    /// 一键报警类型表服务接口
    /// </summary>
    public interface ICallTypeAppService : IApplicationService
    {
        #region 扩展方法

        /// <summary>
        /// 获取所有一键报警类型
        /// </summary>
        /// <returns></returns>
        Task<ListResultDto<CallTypeListDto>> GetAllCallTypeList();

        #endregion

        #region 一键报警类型表管理

        /// <summary>
        /// 根据查询条件获取一键报警类型表分页列表
        /// </summary>
        Task<PagedResultDto<CallTypeListDto>> GetPagedCallTypesAsync(GetCallTypeInput input);

        /// <summary>
        /// 通过Id获取一键报警类型表信息进行编辑或修改 
        /// </summary>
        Task<GetCallTypeForEditOutput> GetCallTypeForEditAsync(NullableIdDto<long> input);

        /// <summary>
        /// 通过指定id获取一键报警类型表ListDto信息
        /// </summary>
        Task<CallTypeListDto> GetCallTypeByIdAsync(EntityDto<long> input);



        /// <summary>
        /// 新增或更改一键报警类型表
        /// </summary>
        Task CreateOrUpdateCallTypeAsync(CreateOrUpdateCallTypeInput input);





        /// <summary>
        /// 新增一键报警类型表
        /// </summary>
        Task<CallTypeEditDto> CreateCallTypeAsync(CallTypeEditDto input);

        /// <summary>
        /// 更新一键报警类型表
        /// </summary>
        Task UpdateCallTypeAsync(CallTypeEditDto input);

        /// <summary>
        /// 删除一键报警类型表
        /// </summary>
        Task DeleteCallTypeAsync(EntityDto<long> input);

        /// <summary>
        /// 批量删除一键报警类型表
        /// </summary>
        Task BatchDeleteCallTypeAsync(List<long> input);

        #endregion

        #region Excel导出功能



        /// <summary>
        /// 获取一键报警类型表信息转换为Excel
        /// </summary>
        /// <returns></returns>
        Task<FileDto> GetCallTypeToExcel();

        #endregion
    }
}
